/**
 * Notes: 路由配置文件
  * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat)
 * User: CC
 * Date: 2020-10-14 07:00:00
 */

module.exports = {
	'test/test': 'test/test_controller@test',

	'job/day': 'job_controller@dayJob',

	'home/setup_get': 'home_controller@getSetup',
	'home/work_data': 'home_controller@workData',
	'home/dynamic_list': 'home_controller@dynamicList',
	'home/statistics': 'home_controller@statistics',
	'home/contact_list': 'home_controller@contactList',

	// 批量请求处理
	'util/batch_request': 'util_controller@batchRequest',

	'passport/login': 'passport_controller@login',
	'passport/login_with_password': 'passport_controller@loginWithPassword',
	'passport/login_withpassword': 'passport_controller@loginWithPassword',
	'passport/phone': 'passport_controller@getPhone',
	'passport/my_detail': 'passport_controller@getMyDetail',
	'passport/register': 'passport_controller@register',
	'passport/edit_base': 'passport_controller@editBase',
	'passport/check_whitelist': 'passport_controller@check_whitelist',
	'passport/logout': 'passport_controller@logout',
	'passport/resetPassword': 'passport_controller@resetPassword',
	'passport/resetPwd': 'passport_controller@resetPassword',
	'passport/resetpwd': 'passport_controller@resetPassword',

	// 用户角色
	'user/check_role': 'user_controller@checkRole',

	// 收藏
	'fav/update': 'fav_controller@updateFav',
	'fav/del': 'fav_controller@delFav',
	'fav/is_fav': 'fav_controller@isFav',
	'fav/my_list': 'fav_controller@getMyFavList',

	'admin/home': 'admin/admin_home_controller@adminHome',
	'admin/clear_vouch': 'admin/admin_home_controller@clearVouchData',

	'admin/login': 'admin/admin_mgr_controller@adminLogin',
	'admin/mgr_list': 'admin/admin_mgr_controller@getMgrList',
	'admin/mgr_insert': 'admin/admin_mgr_controller@insertMgr#demo',
	'admin/mgr_del': 'admin/admin_mgr_controller@delMgr#demo',
	'admin/mgr_detail': 'admin/admin_mgr_controller@getMgrDetail',
	'admin/mgr_edit': 'admin/admin_mgr_controller@editMgr#demo',
	'admin/mgr_status': 'admin/admin_mgr_controller@statusMgr#demo',
	'admin/mgr_pwd': 'admin/admin_mgr_controller@pwdMgr#demo',
	'admin/log_list': 'admin/admin_mgr_controller@getLogList',
	'admin/log_clear': 'admin/admin_mgr_controller@clearLog#demo',

	'admin/setup_set': 'admin/admin_setup_controller@setSetup#demo',
	'admin/setup_set_content': 'admin/admin_setup_controller@setContentSetup#demo',
	'admin/setup_qr': 'admin/admin_setup_controller@genMiniQr',
	'admin/setup_get': 'admin/admin_setup_controller@getSetup',

	// 项目管理
	'admin/clear_projects': 'admin/admin_project_controller@clearProjects',

	// 用户
	'admin/user_list': 'admin/admin_user_controller@getUserList',
	'admin/user_detail': 'admin/admin_user_controller@getUserDetail',
	'admin/user_del': 'admin/admin_user_controller@delUser#demo',
	'admin/user_edit': 'admin/admin_user_controller@editUser#demo',
	'admin/user_status': 'admin/admin_user_controller@statusUser#demo',

	'admin/user_data_get': 'admin/admin_user_controller@userDataGet',
	'admin/user_data_export': 'admin/admin_user_controller@userDataExport',
	'admin/user_data_del': 'admin/admin_user_controller@userDataDel',


	// 内容  
	'home/list': 'home_controller@getHomeList',
	'news/list': 'news_controller@getNewsList',
	'news/view': 'news_controller@viewNews',

	'admin/news_list': 'admin/admin_news_controller@getAdminNewsList',
	'admin/news_insert': 'admin/admin_news_controller@insertNews#demo',
	'admin/news_detail': 'admin/admin_news_controller@getNewsDetail',
	'admin/news_edit': 'admin/admin_news_controller@editNews#demo',
	'admin/news_update_forms': 'admin/admin_news_controller@updateNewsForms#demo',
	'admin/news_update_pic': 'admin/admin_news_controller@updateNewsPic#demo',
	'admin/news_update_content': 'admin/admin_news_controller@updateNewsContent#demo',
	'admin/news_del': 'admin/admin_news_controller@delNews#demo',
	'admin/news_sort': 'admin/admin_news_controller@sortNews#demo',
	'admin/news_status': 'admin/admin_news_controller@statusNews#demo',
	'admin/news_vouch': 'admin/admin_news_controller@vouchNews#demo',

	// 白名单
	'admin/white_list': 'admin/admin_white_controller@getAdminWhiteList',
	'admin/white_insert': 'admin/admin_white_controller@insertWhite#demo',
	'admin/white_detail': 'admin/admin_white_controller@getWhiteDetail',
	'admin/white_del': 'admin/admin_white_controller@delWhite#demo',
	'admin/white_status': 'admin/admin_white_controller@statusWhite#demo',
	'admin/white_import': 'admin/admin_white_controller@importWhiteDataExcel#demo',

	// 工作流  
	'flow/insert': 'flow_controller@insertFlow',
	'flow/edit': 'flow_controller@editFlow',
	'flow/step': 'flow_controller@stepFlow',
	'flow/update_forms': 'flow_controller@updateFlowForms', 
	'flow/del': 'flow_controller@delFlow',
	'flow/my_list': 'flow_controller@getMyFlowList',
	'flow/detail': 'flow_controller@getFlowDetail',
	'flow/view': 'flow_controller@viewFlow',
	'flow/my_checking': 'flow_controller@getMyCheckingList',
	'flow/my_checked': 'flow_controller@getMyCheckedList',

	'admin/flow_list': 'admin/admin_flow_controller@getAdminFlowList',
	'admin/flow_detail': 'admin/admin_flow_controller@getFlowDetail',
	'admin/flow_del': 'admin/admin_flow_controller@delFlow#demo',
	'admin/flow_status': 'admin/admin_flow_controller@statusFlow#demo',
	'admin/flow_data_get': 'admin/admin_flow_controller@flowDataGet',
	'admin/flow_data_export': 'admin/admin_flow_controller@flowDataExport',
	'admin/flow_data_del': 'admin/admin_flow_controller@flowDataDel',

	// 项目管理
	'project/list': 'project_controller@getProjectList',
	'project/getList': 'project_controller@getProjectList',
	'project/detail': 'project_controller@getProjectDetail',
	'project/create': 'project_controller@createProject',
	'project/edit': 'project_controller@updateProject',
	'project/delete': 'project_controller@deleteProject',

	// 研发项目管理
	'research_project/list': 'research_project_controller@getProjectList',
	'research_project/detail': 'research_project_controller@getProjectDetail',
	'research_project/create': 'research_project_controller@createProject',
	'research_project/edit': 'research_project_controller@updateProject',
	'research_project/delete': 'research_project_controller@deleteProject',
	'research_project/status': 'research_project_controller@updateProjectStatus',
	'research_project/flow_history': 'research_project_controller@getProjectFlowHistory',
	'research_project/resource_version': 'research_project_controller@createResourceVersion',
	'research_project/resource_list': 'research_project_controller@getResourceVersionList',
	'research_project/parent': 'research_project_controller@getParent',
	'research_project/branch_list': 'research_project_controller@getBranchList',
	'research_project/clean': 'research_project_controller@cleanDuplicateProjects',
	'research_project/clean_duplicate': 'research_project_controller@cleanDuplicateProjects',
	'research_project/migrate': 'research_project_controller@migrateProjectData',
	'research_project/createDemo': 'research_project_controller@createDemoAsync',
	'research_project/createdemo': 'research_project_controller@createDemoAsync',
	'plm_project/list': 'research_project_controller@getProjectList',

	// 知识库相关路由
	'knowledge/list': 'knowledge_controller@getKnowledgeList',
	'knowledge/detail': 'knowledge_controller@getKnowledgeDetail',
	'knowledge/insert': 'knowledge_controller@insertKnowledge',
	'knowledge/edit': 'knowledge_controller@editKnowledge',
	'knowledge/del': 'knowledge_controller@delKnowledge',
	'knowledge/status': 'knowledge_controller@statusKnowledge',

	// 研发项目相关
	'research/detail': 'research_controller@getResearchDetail',
	'research/getProjectDetail': 'research_controller@getProjectDetail',
	'research/getProjectList': 'research_controller@getProjectList', 
	'research/updateProjectState': 'research_controller@updateProjectState',
	'research/createStateHistory': 'research_controller@createStateHistory',
	'research/getProjectStatusStats': 'research_controller@getProjectStatusStats',
	'research/getStateHistory': 'research_controller@getStateHistory',
	'research/node_detail': 'research_project_controller@getNodeDetail',
	'research/update_task_status': 'research_project_controller@updateTaskStatus',
	'research/graph': 'research_project_controller@getProjectGraph',
	'research/state_detail': 'research_project_controller@getStateDetail',
	'research/simulation_record': 'research_controller@simulationRecordAction',
	'research/get_resource_versions': 'research_controller@getResourceVersions',
	'research/get_documents': 'research_controller@getDocuments',
	'research/get_flow_history': 'research_controller@getFlowHistory',

	// 项目反馈相关路由
	'feedback/add': 'feedback_controller@addFeedback',
	'feedback/update': 'feedback_controller@updateFeedback',
	'feedback/detail': 'feedback_controller@getFeedbackDetail',
	'feedback/list': 'feedback_controller@getFeedbackList',
	'feedback/delete': 'feedback_controller@deleteFeedback',
	'feedback/comment': 'feedback_controller@addFeedbackComment',

	// 修改为全小写路由（兼容处理）
	'research/getprojectdetail': 'research_controller@getProjectDetail',
	'research/getprojectlist': 'research_controller@getProjectList', 
	'research/updateprojectstate': 'research_controller@updateProjectState',
	'research/createstatehistory': 'research_controller@createStateHistory',
	'research/getprojectstatusstats': 'research_controller@getProjectStatusStats',
	'research/getstatehistory': 'research_controller@getStateHistory',
	'research/state_path': 'research_project_controller@getProjectStatePath',
	
	// ==== 跨项目API路由 ====
	// OA对外提供的API
	'oa_api/user/info': 'cross_controller@getUserInfo',
	'oa_api/user/list': 'cross_controller@getUserList',
	'oa_api/department/info': 'cross_controller@getDepartmentInfo',
	'oa_api/department/list': 'cross_controller@getDepartmentList',
	'oa_api/flow/info': 'cross_controller@getFlowInfo',
	'oa_api/approval/create': 'cross_controller@createApproval',
	'oa_api/health': 'cross_controller@healthCheck',

	// 用户相关API
	'user/login': 'user_controller@login',
	'user/get': 'user_controller@getUser',
	'user/list': 'user_controller@getUserList',
	
	// 部门相关API
	'dept/list': 'dept_controller@getDeptList',
	'dept/get': 'dept_controller@getDept',
	
	// 流程相关API
	'flow/list': 'flow_controller@getFlowList',
	'flow/detail': 'flow_controller@getFlowDetail',
	'flow/create': 'flow_controller@createFlow',
	'flow/update': 'flow_controller@updateFlow',
	'flow/delete': 'flow_controller@deleteFlow',
	'flow/status': 'flow_controller@updateFlowStatus',
	
	// 任务相关API
	'task/list': 'task_controller@getTaskList',
	'task/detail': 'task_controller@getTaskDetail',
	'task/create': 'task_controller@createTask',
	'task/update': 'task_controller@updateTask',
	'task/status': 'task_controller@updateTaskStatus',
	
	// 公告相关API
	'notice/list': 'notice_controller@getNoticeList',
	'notice/detail': 'notice_controller@getNoticeDetail',
	'notice/create': 'notice_controller@createNotice',
	'notice/update': 'notice_controller@updateNotice',
	'notice/delete': 'notice_controller@deleteNotice',
	
	// 会议相关API
	'meeting/list': 'meeting_controller@getMeetingList',
	'meeting/detail': 'meeting_controller@getMeetingDetail',
	'meeting/create': 'meeting_controller@createMeeting',
	'meeting/update': 'meeting_controller@updateMeeting',
	'meeting/delete': 'meeting_controller@deleteMeeting',
	
	// 数据统计分析API
	'stat/dashboard': 'stat_controller@getDashboard',
	'stat/flow': 'stat_controller@getFlowStats',
	'stat/task': 'stat_controller@getTaskStats',
	
	// 对外提供跨项目API
	// 流程相关对外API
	'flow_list': 'cross_controller@getFlowList',
	'flow_detail': 'cross_controller@getFlowDetail',
	'flow_status': 'cross_controller@getFlowStatus',
	'flow_create': 'cross_controller@createFlow',
	'flow_update_status': 'cross_controller@updateFlowStatus',

	// 任务相关对外API
	'task_list': 'cross_controller@getTaskList',
	'task_detail': 'cross_controller@getTaskDetail',
	'task_create': 'cross_controller@createTask',
	'task_update_status': 'cross_controller@updateTaskStatus',
	'task_link_project': 'cross_controller@linkTaskToProject',
	
	// 管理员相关API
	'admin/mgr': 'admin/admin_controller@adminMgr',
	'admin/edit': 'admin/admin_controller@adminEdit',
	'admin/status': 'admin/admin_controller@statusAdmin',
	'admin/del': 'admin/admin_controller@delAdmin',

	// 添加测试路由 
	'test/cross_test_oa_plm': 'test_controller@crossTestOaPlm',
	'test/cross_test_plm_oa': 'test_controller@crossTestPlmOa',
	'test/cross_test_crm': 'test_controller@crossTestCrm',
	'admin/user_del': 'admin/admin_user_controller@delUser#demo' 
}; 
